<html><head><script src="news.edit.php_files/dialog.js"></script><script src="news.edit.php_files/popupwin.js"></script><script src="news.edit.php_files/en.js"></script><style type="text/css">@import url(http://127.0.0.1/frameWork/resource/includes/htmlarea/htmlarea.css);</style><link href="news.edit.php_files/admin.css" rel="stylesheet" type="text/css"></head><body onload="" bgcolor="#ffffff">ML


<script type="text/javascript"> 
_editor_url = "http://127.0.0.1/frameWork/resource/includes/htmlarea/";
_editor_lang = "en";
</script> 

<script type="text/javascript" src="news.edit.php_files/htmlarea.js"></script> 

<script type="text/javascript"> 

HTMLArea.loadPlugin("CSS");

function editorInit(textArea){
	editor = new HTMLArea(textArea);
	
	editor.config.toolbar = [
	["copy", "cut", "paste", "space", "undo", "redo", "separator",  "justifyleft", "justifycenter", "justifyright", "justifyfull"],
	["insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator", "inserthorizontalrule", "createlink", "separator" ],
	["htmlmode", "separator","cleartags" ]
	];
	
	//register plugins
	
	editor.config.pageStyle =
	'body { background-color: #FFFFFF; color: black; font-family: verdana,sans-serif; font-size: 8pt; } ' +
	'a {color: #ffdf01; font-family: verdana,sans-serif; font-size: 8pt; text-decoration: none;}' +
	'.cargo 	{COLOR:#000000;FONT-FAMILY:Verdana,Arial,Helvetica,sans-serif;FONT-SIZE:12px;TEXT-DECORATION:none;font-weight: normal;}' +
	'.nome  	{COLOR:#000000;FONT-FAMILY:Verdana,Arial,Helvetica,sans-serif;FONT-SIZE:11px;TEXT-DECORATION:none;font-weight: bolder;}' +
	'.setor 	{COLOR:#000000;FONT-FAMILY:Verdana,Arial,Helvetica,sans-serif;FONT-SIZE:11px;TEXT-DECORATION:none;font-weight: normal;}' +
	'.email 	{COLOR:#000000;FONT-FAMILY:Verdana,Arial,Helvetica,sans-serif;FONT-SIZE:10px;TEXT-DECORATION:none;font-weight: bolder;font-style: italic;}'
	;
	editor.registerPlugin(CSS, {
		combos : [
		{ label: "Tipo de Fonte",
		// menu text       // CSS class
		options: {
			"Padr&atilde;o" 	: "",
			"CARGO" 			: "cargo",
			"NOME" 				: "nome",
			"SETOR" 			: "setor",
			"EMAIL" 			: "email"
		}
		}
		]
	});
	
	editor.generate();
}


function initit() {
	
	editorInit("txt_summary");
	editorInit("txt_news");
	
}

/*
END OF HTML AREA CONFIGURATION
*/

function replaceSubstring(inputString, fromString, toString) {
    var temp = inputString;
    if (fromString == "") {
        return inputString;
    }
    if (toString.indexOf(fromString) == -1) {
        while (temp.indexOf(fromString) != -1) {
            var toTheLeft = temp.substring(0, temp.indexOf(fromString));
            var toTheRight = temp.substring(temp.indexOf(fromString)+fromString.length, temp.length);
            temp = toTheLeft + toString + toTheRight;
        }
    } else {
        var midStrings = new Array("~", "`", "_", "^", "#");
        var midStringLen = 1;
        var midString = "";
        while (midString == "") {
            for (var i=0; i < midStrings.length; i++) {
                var tempMidString = "";
                for (var j=0; j < midStringLen; j++) { tempMidString += midStrings[i]; }
                if (fromString.indexOf(tempMidString) == -1) {
                    midString = tempMidString;
                    i = midStrings.length + 1;
                }
            }
        }
        while (temp.indexOf(fromString) != -1) {
            var toTheLeft = temp.substring(0, temp.indexOf(fromString));
            var toTheRight = temp.substring(temp.indexOf(fromString)+fromString.length, temp.length);
            temp = toTheLeft + midString + toTheRight;
        }
        while (temp.indexOf(midString) != -1) {
            var toTheLeft = temp.substring(0, temp.indexOf(midString));
            var toTheRight = temp.substring(temp.indexOf(midString)+midString.length, temp.length);
            temp = toTheLeft + toString + toTheRight;
        }
    }
    return temp;
}

function showImage(fild){
    theImageObtheFieldToCheckect = eval("document."+fild+"_img");
    theFieldToCheck = document.getElementById(fild);
    theImageObtheFieldToCheckect.src='images/midiaCenter/semNada.gif'
    if (theFieldToCheck.value.indexOf(".ppt")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_download.gif';
    if (theFieldToCheck.value.indexOf(".mp3")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_audios.gif';
    if (theFieldToCheck.value.indexOf(".theFieldToCheckpg")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_image.gif';
    if (theFieldToCheck.value.indexOf(".zip")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_download.gif';
    if (theFieldToCheck.value.indexOf(".swf")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_videos.gif';
}

function buildImages(fild){
    theImageObtheFieldToCheckect = eval("document."+fild+"_img");
    theFieldToCheck = document.getElementById(fild+"_old");
        theImageObtheFieldToCheckect.src='images/midiaCenter/semNada.gif';
    if (theFieldToCheck.value.indexOf(".ppt")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_download.gif';
    if (theFieldToCheck.value.indexOf(".mp3")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_audios.gif';
    if (theFieldToCheck.value.indexOf(".theFieldToCheckpg")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_image.gif';
    if (theFieldToCheck.value.indexOf(".zip")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_download.gif';
    if (theFieldToCheck.value.indexOf(".swf")>-1)
        theImageObtheFieldToCheckect.src='images/midiaCenter/big_videos.gif';
}

function checkFilled(){
    mySubmit();
}
    </script><script type="text/javascript" src="news.edit.php_files/css.html"></script><script type="text/javascript" src="news.edit.php_files/en.html"></script>
    
<form action="news.process.php" method="post" enctype="multipart/form-data" name="cont">
<table bgcolor="#efefef" cellpadding="5" cellspacing="1">
    <tbody><tr>
        <td>NEWS</td>
        <td><font style="font-size: 11px;"><br>
<b>Notice</b>:  Undefined variable:  action in <b>/var/www/frameWork/admin/news.edit.php</b> on line <b>171</b><br>
</font>
            <input name="id_news" value="" type="hidden">
        </td>
    </tr>
    <tr>
        <td colspan="2" class="titleTd">TITLE TR</td>
    </tr>
    <tr>
        <td colspan="2" height="20">&nbsp;</td>
    </tr>
    <tr>
        <td>txt_title</td>
        <td><input name="txt_title" value="" type="text"></td>
    </tr>
    <tr>
        <td>ENGLISH</td>
        <td><div class="htmlarea"><div class="toolbar"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div class="button" title="Copy selection"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_copy.gif"></div></td><td><div class="button" title="Cut selection"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_cut.gif"></div></td><td><div class="button" title="Paste from clipboard"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_paste.gif"></div></td><td><div class="space"></div></td><td><div class="button" title="Undoes your last action"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_undo.gif"></div></td><td><div class="button" title="Redoes your last action"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_redo.gif"></div></td><td><div class="separator"></div></td><td><div class="button buttonPressed" title="Justify Left"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_left.gif"></div></td><td><div class="button" title="Justify Center"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_center.gif"></div></td><td><div class="button" title="Justify Right"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_right.gif"></div></td><td><div class="button" title="Justify Full"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_justify.gif"></div></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="label">Tipo de Fonte</td><td><select><option value="">Padr&amp;atilde;o</option><option value="cargo">CARGO</option><option value="nome">NOME</option><option value="setor">SETOR</option><option value="email">EMAIL</option></select></td><td><div class="separator"></div></td><td><div class="button" title="Ordered List"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_list_num.gif"></div></td><td><div class="button" title="Bulleted List"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_list_bullet.gif"></div></td><td><div class="button" title="Decrease Indent"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_indent_less.gif"></div></td><td><div class="button" title="Increase Indent"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_indent_more.gif"></div></td><td><div class="separator"></div></td><td><div class="button" title="Horizontal Rule"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_hr.gif"></div></td><td><div class="button" title="Insert Web Link"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_link.gif"></div></td><td><div class="separator"></div></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div class="button" title="Toggle HTML Source"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_html.gif"></div></td><td><div class="separator"></div></td><td><div class="button" title="CLEAR ALL HTML"><img style="width: 18px; height: 18px;" src="news.edit.php_files/texto_branco.gif"></div></td></tr></tbody></table></div><iframe style="border-width: 1px; width: 438px; height: 227px;"></iframe><div class="statusBar"><span class="statusBarTree">Path: <a title="" href="#">body</a></span></div></div><textarea style="display: none; width: 438px; height: 227px;" name="txt_summary" id="txt_summary" rows="20" cols="60">this
is &lt;b&gt;fun&lt;/b&gt; - &lt;p align='right'&gt;should &lt;a
href='javascript:alert(2)'&gt;a LINK&lt;/a&gt;&lt;/p&gt; here&lt;br&gt;
preserved in ice</textarea></td>
    </tr>
    <tr>
        <td>PORTUGUESE</td>
        <td><div class="htmlarea"><div class="toolbar"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div class="button" title="Copy selection"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_copy.gif"></div></td><td><div class="button" title="Cut selection"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_cut.gif"></div></td><td><div class="button" title="Paste from clipboard"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_paste.gif"></div></td><td><div class="space"></div></td><td><div class="button" title="Undoes your last action"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_undo.gif"></div></td><td><div class="button" title="Redoes your last action"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_redo.gif"></div></td><td><div class="separator"></div></td><td><div class="button buttonPressed" title="Justify Left"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_left.gif"></div></td><td><div class="button" title="Justify Center"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_center.gif"></div></td><td><div class="button" title="Justify Right"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_right.gif"></div></td><td><div class="button" title="Justify Full"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_align_justify.gif"></div></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="label">Tipo de Fonte</td><td><select><option value="">Padr&amp;atilde;o</option><option value="cargo">CARGO</option><option value="nome">NOME</option><option value="setor">SETOR</option><option value="email">EMAIL</option></select></td><td><div class="separator"></div></td><td><div class="button" title="Ordered List"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_list_num.gif"></div></td><td><div class="button" title="Bulleted List"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_list_bullet.gif"></div></td><td><div class="button" title="Decrease Indent"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_indent_less.gif"></div></td><td><div class="button" title="Increase Indent"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_indent_more.gif"></div></td><td><div class="separator"></div></td><td><div class="button" title="Horizontal Rule"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_hr.gif"></div></td><td><div class="button" title="Insert Web Link"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_link.gif"></div></td><td><div class="separator"></div></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td><div class="button" title="Toggle HTML Source"><img style="width: 18px; height: 18px;" src="news.edit.php_files/ed_html.gif"></div></td><td><div class="separator"></div></td><td><div class="button" title="CLEAR ALL HTML"><img style="width: 18px; height: 18px;" src="news.edit.php_files/texto_branco.gif"></div></td></tr></tbody></table></div><iframe style="border-width: 1px; width: 438px; height: 227px;"></iframe><div class="statusBar"><span class="statusBarTree">Path: <a title="" href="#">body</a></span></div></div><textarea style="display: none; width: 438px; height: 227px;" name="txt_news" id="txt_news" rows="20" cols="60"></textarea></td>
   </tr>
    <tr>
        <td>dat_date</td>
        <td><input name="dat_date" value="" type="hidden"></td>
    </tr>
    <tr>
        <td>published</td>
        <td><input name="published" value="" type="text"></td>
    </tr>
    <tr>
        <td colspan="2"><input value="SALVAR" onclick="checkFilled();" type="button"></td>
    </tr>
</tbody></table>

<script type="text/javascript">
    function mySubmit() {
	   	document.cont.onsubmit(); // workaround browser bugs.
		document.cont.submit();
    };
    
setTimeout("initit()",1000);
function dos(){
	//var k = document.form[0];
	var j = document.getElementById("txt_summary");
	alert(j._doc);
}
</script>

<a href="javascript:dos()">SSSSSSSSSSSS</a>
</form></body></html>